package certification.sections.session11.cap14;

import java.rmi.Naming;
import java.rmi.registry.LocateRegistry;

public class ServerRemoto {
	
	public static void main(String[] args) throws Exception{
		ObjectService service = new ObjectServiceImpl();
		
		LocateRegistry.createRegistry(1099);
		Naming.bind("to", service);
		System.out.println("Server On");
	}
	

}
